package com.anyext.storage.impl;

import com.anyext.storage.BusinessTemplate;
import com.anyext.storage.JdbcTemplate;
import com.anyext.storage.Session;
import com.anyext.storage.SqlMapTemplate;

@SuppressWarnings("serial")
public class SessionImpl implements Session {

	private JdbcTemplate jdbcTemplate = new JdbcTemplateImpl();
	
	private SqlMapTemplate sqlMapTemplate = new SqlMapTemplateImpl(jdbcTemplate);
	
	private BusinessTemplate businessTemplate = new BusinessTemplateImpl(sqlMapTemplate); 

	@Override
	public JdbcTemplate createJdbcTemplate() {
		return jdbcTemplate;
	}

	@Override
	public SqlMapTemplate createSqlMapTemplate() {
		return sqlMapTemplate;
	}
	
	@Override
	public BusinessTemplate createBusinessTemplate() {
		return businessTemplate;
	}

}
